Skip to content

fix incorrect circle color in Tournament Player Details#2845

Merged
veloce merged 2 commits intolichess-org:mainfrom
HaonRekcef:fix-tournament-player-color
Mar 27, 2026
Merged

fix incorrect circle color in Tournament Player Details#2845
veloce merged 2 commits intolichess-org:mainfrom
HaonRekcef:fix-tournament-player-color

Conversation

@HaonRekcef
Copy link
Copy Markdown
Collaborator

@HaonRekcef HaonRekcef commented Mar 25, 2026

The color of the circle indicating the color the player had in the game was swapped. Reported here: https://lichess.org/forum/community-blog-discussions/ublog-VGPcQtN3?page=5#DPksKbS9
Created a new side indicator widget and also used it in the broadcast_player_results_screen.dart‎ .

dark mode:

image

light mode:

image

child: Icon(LichessIcons.body_cut, size: 20),
),
Icon(pairing.color == Side.white ? Icons.circle_outlined : Icons.circle, size: 20),
Icon(pairing.color == Side.white ? Icons.circle : Icons.circle_outlined, size: 20),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it depends on the background theme as well (dark vs light). Does it? In that case we should use an helper.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes it does, good catch

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed now

child: Center(child: SideIndicator(side: color, size: 15)),
),
if (showTCIcon) SizedBox(width: 12, child: Icon(fideTC.icon, size: 15)),
if (showTCIcon) Icon(fideTC.icon, size: 15),
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change, but I don't think we should wrap the Icon with Size 15 in a SizedBox with lesser size, so I simply removed it as I don't see a reason for it.

Copy link
Copy Markdown
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@veloce veloce merged commit 46bc40f into lichess-org:main Mar 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants